import request from '@/utils/request'


// 获取课程分类详情
export function getCourseTypeInfo() {
  return request({
    url: 'xingyue/courseType/courseType/list/API_001',
    method: 'post'
  })
}

export function getCourseList(data) {
  return request({
    url: 'xingyue/course/course/list/API_003',
    method: 'post',
    data:data
  })
}

export function addCourse(data) {
  return request({
    url: 'xingyue/course/course/insert/API_004',
    method: 'post',
    data:data
  })
}

export function getCourseById(id) {
  return request({
    url: 'xingyue/course/course/getById/API_005/'+id,
    method: 'post',
  })
}

export function updateCourse(data) {
  return request({
    url: 'xingyue/course/course/update/API_006',
    method: 'post',
    data:data
  })
}

export function deleteCourse(id) {
  return request({
    url: 'xingyue/course/course/delete/API_007/'+id,
    method: 'post',
  })
}

export function courseDict() {
  return request({
    url: 'xingyue/course/course/dict/API_008',
    method: 'post',
  })
}
